package com.banmao.algorithm.No1To100.No15;

import java.util.List;

public class Answer {

    public static void main(String[] args) {

        int[] nums = {-2, 0, 0, 2, 2};

        Solution1 solution = new Solution1();
        List<List<Integer>> result = solution.threeSum(nums);

        for (List<Integer> temp : result) {
            StringBuffer sb = new StringBuffer("[");
            for (Integer num : temp) {
                sb.append(num + ", ");
            }
            sb.replace(sb.lastIndexOf(","), sb.length() - 1, "]");
            System.out.println(sb);
        }
    }

}
